package com.cykj.pos.service.impl;

import java.util.List;

import com.cykj.pos.domain.BizOrganization;
import com.cykj.pos.mapper.BizOrganizationMapper;
import com.cykj.pos.service.IBizOrganizationService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * 机构信息Service业务层处理
 * 
 * @author ruoyi
 * @date 2022-04-08
 */
@Service
public class BizOrganizationServiceImpl implements IBizOrganizationService
{
    @Autowired
    private BizOrganizationMapper bizOrganizationMapper;

    /**
     * 查询机构信息
     * 
     * @param id 机构信息主键
     * @return 机构信息
     */
    @Override
    public BizOrganization selectBizOrganizationById(Long id)
    {
        return bizOrganizationMapper.selectBizOrganizationById(id);
    }

    /**
     * 查询机构信息列表
     * 
     * @param bizOrganization 机构信息
     * @return 机构信息
     */
    @Override
    public List<BizOrganization> selectBizOrganizationList(BizOrganization bizOrganization)
    {
        return bizOrganizationMapper.selectBizOrganizationList(bizOrganization);
    }

    /**
     * 新增机构信息
     * 
     * @param bizOrganization 机构信息
     * @return 结果
     */
    @Override
    public int insertBizOrganization(BizOrganization bizOrganization)
    {
        return bizOrganizationMapper.insertBizOrganization(bizOrganization);
    }

    /**
     * 修改机构信息
     * 
     * @param bizOrganization 机构信息
     * @return 结果
     */
    @Override
    public int updateBizOrganization(BizOrganization bizOrganization)
    {
        return bizOrganizationMapper.updateBizOrganization(bizOrganization);
    }

    /**
     * 批量删除机构信息
     * 
     * @param ids 需要删除的机构信息主键
     * @return 结果
     */
    @Override
    public int deleteBizOrganizationByIds(Long[] ids)
    {
        return bizOrganizationMapper.deleteBizOrganizationByIds(ids);
    }

    /**
     * 删除机构信息信息
     * 
     * @param id 机构信息主键
     * @return 结果
     */
    @Override
    public int deleteBizOrganizationById(Long id)
    {
        return bizOrganizationMapper.deleteBizOrganizationById(id);
    }
}
